﻿using System;

namespace DevOnServer
{
    public static class CRandom
    {
        public static int random(int min, int max)
        {
            return s_random.Next(min, max);
        }

        public static float random(float min, float max)
        {
            return (float)(s_random.NextDouble() * (max - min) + min);
        }

        private static Random s_random = new Random();
    }
}
